﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZhuXingFamilys
{
    public enum ApplicationAvailablity
    {
        Always,
        ArchitectureDiscipline,
        StructuralAnalysis,
        MEP
    }

 

    public class ApplicationOptions
    {
        public ApplicationAvailablity Availability { get; set; }


        private static ApplicationOptions s_options = null;
        private CsAddpanel m_eApplication;


        public static void Initialize(CsAddpanel application)
        {
            s_options = new ApplicationOptions();
            s_options.m_eApplication = application;
        }

       
        public static ApplicationOptions Get()
        {
            if (s_options == null)
                throw new Exception("Static options was not initialized");

            return s_options;
        }

    }

    
}
